#pragma once
#include <iostream>
using namespace std;

template <typename T>
class Complex
{
        friend ostream& operator<<(ostream &out, Complex&obj){
                out<<"a = "<<obj.a <<" b = "<< obj.b<<endl;  
                m_c++;
                return out;
        }

public:
        static T m_c;
public:
        T a;
        T b;
public:
        Complex(T a, T b);
        ~Complex();

        Complex operator+(Complex &obj);
};